import request from '@/utils/request'

/**
 * 消息-列表
 * @param {*} data
 *
 */
export function messagePageList(data) {
    return request({
        url: 'adminMessage/queryPageList',
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}
/**
 * 消息-单条数据标记已读
 * @param {*} data
 *
 */
export function readMessage(data) {
    return request({
        url: 'adminMessage/readMessage',
        method: 'post',
        data: data,
    })
}
/**
 * 消息-分类消息标记已读
 * @param {*} data
 *
 */
export function readMessageByLabelType(data) {
    return request({
        url: 'adminMessage/readMessageByLabelType',
        method: 'post',
        data: data,
    })
}
/**
 * 消息-获取消息详情
 * @param {*} data
 *
 */
export function getInfoById(data) {
    return request({
        url: 'adminMessage/getById/'+data,
        method: 'post',
        data: data,
    })
}
/**
 * 消息-获取消息详情
 * @param {*} data
 *
 */
export function queryMessageNum() {
    return request({
        url: 'adminMessage/queryMessageNum',
        method: 'get',
    })
}